<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends Action {
    public function index(){
		$news=M("News");
        $newsList=$news->order('id desc')->limit('0,6')->select();
        $this->assign("newsList",$newsList);
		
		$em=M("Emarketing");
		$EmarketingList=$em->order('id desc')->limit('0,1')->select();
        $this->assign("EmarketingList",$EmarketingList);
		
        $this->display();
    }
}